<template>
  <view class="buttom center" @click="clickHandler">
    <text class="buttom-btn">{{props.btnText}}</text>
  </view>
</template>

<script setup lang="ts">
  const props = defineProps({
    btnText:{
      type:String,
      default:'立即购买'
    },
    courseId:[String,Number]
  })
  const emit = defineEmits(['clickBottom'])
  const clickHandler = ()=>{
    emit('clickBottom')
  }
</script>

<style scoped lang="scss">
  .buttom{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    height: 100rpx;
    border-top: 0.5px solid #efeff4;
    .buttom-btn{
      width: 700rpx;
      background-color: $mxg-text-color-blue;
      text-align: center;
      font-size: 35rpx;
      color: #fff;
      border-radius: 50rpx;
      line-height: 80rpx;
    }
  }
</style>